#include "TaskQueue.h"
#include <stdlib.h>
#include "Producter.h"
#include <iostream>
#include <unistd.h>
#include <time.h>
using std::cout;
using std::endl;

Producter::Producter(){

}
Producter::~Producter(){

}
void Producter::produce(TaskQueue & taskQue){
    srand(time(NULL));
    int cnt = 20;
    while(--cnt){
        int number = rand() % 200;
        taskQue.push(number);
        cout << "Producter number = " << number << endl;
        sleep(1);
    }
}


